import {Message} from 'element-ui'
import store from '@/store/';
import router from '@/router/router'
import console from '@/util/console'

/**
 * 获取业务字典参数
 */
export function checkChooseProject(){
  //console.log('store.getters.projectInfo===',store.getters.projectInfo);
  if(!store.getters.projectInfo || !store.getters.projectInfo.projectName){
    Message({
      type: 'warning',
      message: '请选择一个项目再进入！',
      customClass:'zZindex'
    })
    router.push({path: '/general/project/generalMyProjectSelector'});
    return false;
  }
  else{
    return true
  }
}
export default {
  checkChooseProject
}
